<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<jsp:include page="../head.jsp"></jsp:include>
<body>
<div id="loginer">
	<div id="loginbox">
        <form name="form1" id="form1" method="post" action="UserServlet" >
        <input type="hidden" name="method" value="login">
        <table class="form">
          <tr>
            <th scope="row">用户名：</th>
            <td><input type="text" name="userName" id="userName" value="" size="30" /></td>
            <td rowspan="2" valign="middle"><button type="submit">登录</button></td>
          </tr>
          <tr>
            <th scope="row">密码：</th>
            <td><input type="password" name="userPass" size="30" /></td>
          </tr>
        </table>
        <script type="text/javascript">
        form1.userName.focus();
        </script>
        </form>
        <%
            if(request.getParameter("err")!=null)
            {
         %>
        <div class="notice" align="center">
                      用户名或密码错误，登录失败。
        </div>
         <%
            }
         %>
    </div>
</div>
</body>
</html>
